<?php 
namespace Com\Mvc\Factory\ServiceLocator;

use Zend\ServiceManager\ServiceManager;

class ServiceLocatorFactory{
    
    protected static $serviceManager = null;
	
    public static function getInstance()
    {
        if(null === self::$serviceManager) {
            throw new NullServiceLocatorException('ServiceLocator is not set');
        }
        return self::$serviceManager;
    }

   
    public static function setInstance(ServiceManager $serviceManager)
    {
        self::$serviceManager = $serviceManager;
    }
}

?>